package com.school.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.school.dao.HljtSchoolimageDao;
import com.school.entity.HljtSchoolimage;
import com.school.service.HljtSchoolimageService;
@Service
public class HljtSchoolimageServiceImpl implements HljtSchoolimageService {

	@Autowired
	private HljtSchoolimageDao hljtSchoolimageDao;
	
	@Override
	public List<HljtSchoolimage> selectAllSchoolImage(int start,int size) {
		List<HljtSchoolimage> list=new ArrayList<HljtSchoolimage>();
		list=hljtSchoolimageDao.selectAllSchoolImage(start,size);
		return list;
	}
	
	@Override
	public List<HljtSchoolimage> selectSchoolImageByType(String strType) {
			return hljtSchoolimageDao.selectSchoolImageByType(strType);
	}
	
	@Override
	public HljtSchoolimage selectHljtSchoolImageById(String strID) {
		HljtSchoolimage oHljtSchoolimage=new HljtSchoolimage();
		oHljtSchoolimage=hljtSchoolimageDao.selectHljtSchoolImageById(Integer.parseInt(strID));
		return oHljtSchoolimage;
	}

	@Override
	public int insertHljtSchoolImage(HljtSchoolimage oHljtSchoolimage) {
		return hljtSchoolimageDao.insertHljtSchoolImage(oHljtSchoolimage) ;
	}

	@Override
	public int updateHljtSchoolImageById(HljtSchoolimage oHljtSchoolimage) {
		return hljtSchoolimageDao.updateHljtSchoolImageById(oHljtSchoolimage);
	}

	@Override
	public int deleteHljtSchoolImageById(String strID) {
		return hljtSchoolimageDao.deleteHljtSchoolImageById(Integer.parseInt(strID));
	}

	@Override
	public Integer deleteSchoolImage(Integer id) {
		// TODO Auto-generated method stub
		return hljtSchoolimageDao.deleteSchoolImage(id);
	}

	@Override
	public HljtSchoolimage findSchoolImage(Integer id) {
		// TODO Auto-generated method stub
		return hljtSchoolimageDao.findSchoolImage(id);
	}

	@Override
	public Integer updateSchoolImage(HljtSchoolimage hljtSchoolimage) {
		// TODO Auto-generated method stub
		return hljtSchoolimageDao.updateSchoolImage(hljtSchoolimage);
	}

	@Override
	public Integer addSchoolImage(HljtSchoolimage hljtSchoolimage) {
		// TODO Auto-generated method stub
		return hljtSchoolimageDao.addSchoolImage(hljtSchoolimage);
	}

	@Override
	public List<HljtSchoolimage> schoolimageList(String type, String title) {
		// TODO Auto-generated method stub
		return hljtSchoolimageDao.schoolimageList(type, title);
	}

	@Override
	public List<HljtSchoolimage> schoolimageListPage(String type, String title, Integer pageSize, Integer pageIndex) {
		// TODO Auto-generated method stub
		return hljtSchoolimageDao.schoolimageListPage(type, title, pageSize, pageIndex);
	}

	@Override
	public Integer updateschoolimage(HljtSchoolimage hljtschoolimage) {
		// TODO Auto-generated method stub
		return hljtSchoolimageDao.updateschoolimage(hljtschoolimage);
	}

	@Override
	public Integer deleteimage(Integer type) {
		// TODO Auto-generated method stub
		return hljtSchoolimageDao.deleteimage(type);
	}

	

	

}
